package com.expand.demo

import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.rich.widget.RichTextView

/**
 *  Created by zxn on 2021/12/23.
 */
class NumberActivity : AppCompatActivity() {

    companion object {
        @JvmStatic
        fun jumpTo(context: Context) {
            context.startActivity(Intent(context, NumberActivity::class.java))
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_number)
        val tvTotalIncome: RichTextView = findViewById(R.id.tvTotal)

        findViewById<View>(R.id.btnChange).setOnClickListener {
            tvTotalIncome.showNumber(6000.toString())
        }
        //tvTotalIncome.setText("12888888888.00", TextView.BufferType.NORMAL, new Handler());
        //tvTotalIncome.showNumberWithAnimation(3201.23f, CountNumberView.FLOATREGEX);
        tvTotalIncome.showNumber(2000.toString())
    }
}